//index.js
const app = getApp()

Page({
  data: {
    avatarUrl: './user-unlogin.png',
    userInfo: {},
    logged: false,
    takeSession: false,
    requestResult: '',
    title:'学并思',
    queslist:[3,3,3]
  },

  onLoad: function() {
    var that = this
    wx.request({
      url: 'http://1o533n8683.imwork.net/api/v1/get_ques_list', // 仅为示例，并非真实的接口地址
      data: {
        x: '',
        y: ''
      },
      header: {
        'content-type': 'application/json' // 默认值
      },
      success(res) {
        console.log(res.data)
        that.setData({
          queslist: res.data
        })
      }
    })

  },

  onGetUserInfo: function(e) {
    
    
  },

  onGetOpenid: function() {
    
    
  },

  // 上传图片
  doUpload: function () {
   
  },

})
